package com.n9.buymsg.service.qqonline;

/**
 * @author ice
 * @since 2019/3/5 16:50
 */
public enum MsgType {
    /**
     * 群消息
     */
    GROUP,
    /**
     * 群临时对话
     */
    TEMP_GROUP_MEMBER,
    /**
     * 好友消息
     */
    FRIEND;

    public static MsgType convert(int msgType) {
        if (msgType == 82) {
            return GROUP;
        } else if (msgType == 141) {
            return TEMP_GROUP_MEMBER;
        } else if (msgType == 166) {
            return FRIEND;
        } else {
            return null;
        }
    }
}
